package com.jeequan.jeepay.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeequan.jeepay.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

 /**
 * 代付通道表;
 * @author : wondream322@gmail.com
 * @date : 2023-8-19
 */
@ApiModel(value = "代付通道表",description = "")
@TableName("payment_channel")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PaymentChannel extends BaseModel implements Serializable,Cloneable{
    
     //gw
     public static final LambdaQueryWrapper<PayMemberDO> gw(){
         return new LambdaQueryWrapper<>();
     }
     
    /** 主键ID */
    @ApiModelProperty(value = "主键ID",name = "主键ID",notes = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id ;
    /** 代付代码 */
    @ApiModelProperty(value = "代付代码",name = "代付代码",notes = "")
    private String code ;
    /** 代付名称 */
    @ApiModelProperty(value = "代付名称",name = "代付名称",notes = "")
    private String title ;
    /** 账本类型 */
    @ApiModelProperty(value = "账本类型",name = "账本类型",notes = "")
    private Integer balanceType ;
    /** 状态：几类账户（一类、二类） */
    @ApiModelProperty(value = "状态：几类账户（一类、二类）",name = "状态：几类账户（一类、二类）",notes = "")
    private Integer balanceLevel ;
    /** 商户号 */
    @ApiModelProperty(value = "商户号",name = "商户号",notes = "")
    private String merchantNo ;
    /** 签文密钥 */
    @ApiModelProperty(value = "签文密钥",name = "签文密钥",notes = "")
    private String signKey ;
    /** 请求代付的地址 */
    @ApiModelProperty(value = "请求代付的地址",name = "请求代付的地址",notes = "")
    private String paymentGateway ;
    /** 服务器通知网址 */
    @ApiModelProperty(value = "服务器通知网址",name = "服务器通知网址",notes = "")
    private String notifyUrl ;
    /** 是否默认：1是，0否 */
    @ApiModelProperty(value = "是否默认：1是，0否",name = "是否默认：1是，0否",notes = "")
    private Integer defaultFlag ;
    /** 费率类型：0-按单笔收费0 1-按比例收费 2-单笔+比例 */
    @ApiModelProperty(value = "费率类型：0-按单笔收费0 1-按比例收费 2-单笔+比例",name = "费率类型：0-按单笔收费0 1-按比例收费 2-单笔+比例",notes = "")
    private Integer costRateType ;
    /** 比例收费值 */
    @ApiModelProperty(value = "比例收费值",name = "比例收费值",notes = "")
    private BigDecimal costRate ;
    /** 单笔收取费用 */
    @ApiModelProperty(value = "单笔收取费用",name = "单笔收取费用",notes = "")
    private Integer costFixedRate ;
    /** 加密的公钥 */
    @ApiModelProperty(value = "加密的公钥",name = "加密的公钥",notes = "")
    private String publicKey ;
    /** 加密的私钥 */
    @ApiModelProperty(value = "加密的私钥",name = "加密的私钥",notes = "")
    private String privateKey ;
    /** 平台公钥 */
    @ApiModelProperty(value = "平台公钥",name = "平台公钥",notes = "")
    private String platformPublicKey ;
    /** 状态：0-失效 1-有效 */
    @ApiModelProperty(value = "状态：0-失效 1-有效",name = "状态：0-失效 1-有效",notes = "")
    private Integer state ;
    /** 创建时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "创建时间",name = "创建时间",notes = "")
    private Date createTime ;
    /** 更新时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "更新时间",name = "更新时间",notes = "")
    private Date updateTime ;
    /** 查询代付的地址 */
    @ApiModelProperty(value = "查询代付的地址",name = "查询代付的地址",notes = "")
    private String queryGateway ;

}